﻿// ע�

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XT.Sql.Models;

namespace IotServerService.Entities;
/// <summary>
/// 所有运行的程序
/// </summary>
[SugarTable("net_program_iot", TableDescription = "所有运行的程序")]
public class ProgramInfo : EntityBase
{


    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称", IsNullable = true, Length = 90)]
    public string Name { get; set; }

    /// <summary>
    /// 启动路径;程序部署路径
    /// </summary>
    [SugarColumn(ColumnDescription = "程序部署路径", IsNullable = true, Length = 1000)]
    public string RunPath { get; set; }

    /// <summary>
    /// 程序类型;0 其它客户端  1 采集客户端  2 数据服务端
    /// </summary>
    [SugarColumn(ColumnDescription = "程序类型", IsNullable = true)]
    public int ProgramType { get; set; }

    /// <summary>
    /// IP端口地址;程序的IP端口
    /// </summary>
    [SugarColumn(ColumnDescription = "IP端口", IsNullable = true, Length = 50)]
    public string IPAddress { get; set; }

    /// <summary>
    /// 备注;备注说明
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", IsNullable = true, Length = 255)]
    public string Remark { get; set; }

    /// <summary>
    /// 启动时间;程序启动时间
    /// </summary>
    [SugarColumn(ColumnDescription = "启动时间", IsNullable = true)]
    public DateTime? Runtime { get; set; }


}
